<?php 
namespace App\Http\Controllers;
use App\Http\Controllers;

use App\Http\Controllers\Controller;
use App\User;
use \DB;
class HomeController extends CommonController {

    /**
     * 显示首页。
     *
     * @return Response
     */
    public function getIndex()
    {
//     	$submodules = User::getPermissionNav(1);
//     	$controllers = User::getPermissionMenu(4,1);
      return view('home.index');
    }
    
    
    public function getTest(){
    	$arr = array(array('2013-10-01',20.5),array('2013-10-02',23.7),array('2013-10-03',22.4),array('2013-10-04',29.0),array('2013-10-05',22.2),array('2013-10-06',22.6),array('2013-10-07',26.9),array('2013-10-08',28.0),array('2013-10-09',24.1),array('2013-10-10',27.1),array('2013-10-11',23.6),array('2013-10-12',28.8),array('2013-10-13',22.4),array('2013-10-14',23.6),array('2013-10-15',24.2),array('2013-10-16',22.6),array('2013-10-17',26.2),array('2013-10-18',28.2),array('2013-10-19',21.7),array('2013-10-20',25.2),array('2013-10-21',25.0),array('2013-10-22',21.6),array('2013-10-23',25.7),array('2013-10-24',21.7),array('2013-10-25',22.2),array('2013-10-26',25.6),array('2013-10-27',26.2),array('2013-10-28',26.0),array('2013-10-29',23.2),array('2013-10-30',22.4));
		echo json_encode($arr);
    }




}